package com.heima.client;

import com.heima.model.article.dtos.AuthorDto;
import com.heima.model.media.dtos.WmNewsResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-article")
public interface ArticleFeign {

    @PostMapping("/api/v1/author/save")
Integer saveAuthor(@RequestBody AuthorDto dto);

    @PostMapping("api/v1/article/save")
     Long save(@RequestBody WmNewsResultDTO dto);

}
